package cn.shyouchi.wuguanjia.android.model;

import android.text.TextUtils;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by Eenie on 2016/12/30 at 10:14
 * Email: 472279981@qq.com
 * Des:
 */

public class UserData extends RealmObject {

    @PrimaryKey
    private String token;
    private int type;
    private int permissions;
    private String permissions_name;
    private String username;
    private String avatar;
    private String name;
    private String gender;
    private String birthday;
    private String address;
    private String number;
    private String publisher;
    private String validate;
    private String project_id;
    private String id_card_positive;
    private String id_card_negative;
    private String id_card_head_image;
    private int height;
    private String graduate;
    private String unique;
    private String telephone;
    private String living_address;
    private String emergency_contact;
    private String industry;
    private String skill;
    private String channel;

    private String employer;
    private String bank_card;
    private String security_card;
    private String work_content;
    private String work_experience;

    public String getToken() {
        return token;
    }



    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getPermissions() {
        return permissions;
    }

    public void setPermissions(int permissions) {
        this.permissions = permissions;
    }

    public String getPermissions_name() {
        return permissions_name;
    }

    public void setPermissions_name(String permissions_name) {
        this.permissions_name = permissions_name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getValidate() {
        return validate;
    }

    public void setValidate(String validate) {
        this.validate = validate;
    }

    public String getId_card_positive() {
        return id_card_positive;
    }

    public void setId_card_positive(String id_card_positive) {
        this.id_card_positive = id_card_positive;
    }

    public String getId_card_negative() {
        return id_card_negative;
    }

    public void setId_card_negative(String id_card_negative) {
        this.id_card_negative = id_card_negative;
    }

    public String getId_card_head_image() {
        return id_card_head_image;
    }

    public String getAvatar() {
        return TextUtils.isEmpty(avatar) ? id_card_head_image : avatar;
    }

    public void setId_card_head_image(String id_card_head_image) {
        this.id_card_head_image = id_card_head_image;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getGraduate() {
        return graduate;
    }

    public void setGraduate(String graduate) {
        this.graduate = graduate;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getLiving_address() {
        return living_address;
    }

    public void setLiving_address(String living_address) {
        this.living_address = living_address;
    }

    public String getEmergency_contact() {
        return emergency_contact;
    }

    public void setEmergency_contact(String emergency_contact) {
        this.emergency_contact = emergency_contact;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }


    public String getProject_id() {
        return project_id;
    }

    public void setProject_id(String project_id) {
        this.project_id = project_id;
    }

    public String getUnique() {
        return unique;
    }

    public void setUnique(String unique) {
        this.unique = unique;
    }


    public String getEmployer() {
        return employer;
    }

    public void setEmployer(String employer) {
        this.employer = employer;
    }


    public String getWork_content() {
        return work_content;
    }

    public void setWork_content(String work_content) {
        this.work_content = work_content;
    }

    public String getWork_experience() {
        return work_experience;
    }

    public void setWork_experience(String work_experience) {
        this.work_experience = work_experience;
    }


    public String getBank_card() {
        return bank_card;
    }

    public void setBank_card(String bank_card) {
        this.bank_card = bank_card;
    }

    public String getSecurity_card() {
        return security_card;
    }

    public void setSecurity_card(String security_card) {
        this.security_card = security_card;
    }
}
